echo OFF

set SDKROOT=c:\sdk

set OLDPATH=%PATH%
set PATH=%SDKROOT%\compiler\bin;%SDKROOT%\compiler\lib\gcc-lib\powerpc\cygnus-2.7.2-960126;%SDKROOT%\compiler\powerpc\bin

ccppc -O0 -mcpu=860 -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -I%SDKROOT%/Include -DCPU=PPC860 -I%SDKROOT%/compiler/i386-pc-mingw32/sys-include -DPRJ_BUILD -O -c %1.cpp -o %1.o

set PATH=%OLDPATH%

if errorlevel 1 goto DONE
echo !! SUCCESS !!
goto FINI

:DONE
echo **** FAILED *****.

:FINI





